#if !defined(__OTA_HTTP_CURL_H__)
#define __OTA_HTTP_CURL_H__

#define OTA_URL "http://192.168.35.68:8000/fileinfo.json"
#define OTA_URL_DOWNLOAD "http://192.168.35.68:8000/download/gateway"
#define OTA_LOCAL_FILE_PATH "/root/gateway.update"
typedef struct
{
    char *data;
    int len;
}response_body_t;

response_body_t *ota_http_curl_get_response(char *url);

int ota_http_curl_download(char *url, char *file_path);

#endif